package com.seamtop.cuber.controller;

import com.seamtop.cuber.service.CuberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by zongjunfeng on 2015/11/3.
 */

@Controller("CuberController")
public class CuberController {

    @Autowired
    private CuberService cuberService;

    @RequestMapping("/cuber/addMenu.shtml")
    public void addCounterIndex(HttpServletRequest request, HttpServletResponse response,
                                  ModelMap model) {
        System.out.println("test");
        cuberService.addMenu();
    }
}
